<template>
  <div class="body">
    <div class="w100 h-60 pl-30 pr-30 rowsb rowsm" style="background-color: #E33636;">
      <div class="rows rowsm">
        <!-- <img  class="w-20 h-20 mr-10" alt="">
        <div class="fs-18 colfff"></div> -->
      </div>
        <router-link to="/login"> 
          <div class="rows rowsm">
          <img src="../../static/img/icon_fh-1.png" class="w-20 h-20 mr-10" alt="">
          <div class="fs-18 colfff">返回</div>
          </div>
      </router-link>
      
    </div>

    <div class="agreement-warp">
      <h2> {{agreementInfo.configurationName}}</h2>
      <p class="content" v-html="agreementInfo.configurationContent"></p>
    </div>

    <!-- <Footer></Footer> -->
  </div>
</template>

<script>
// import axios from 'axios';
export default {
  components: {},
  props: {},
  data() {
    return {
      configurationName:'',
      agreementInfo:{}
    };
  },
  created() {},
  mounted() {
    if(this.$route.query.type){
      this.proconfigrich(this.$route.query.type)
    }
  },
  methods: {
    proconfigrich(val){
      val == '1' ? this.configurationName = '隐私协议' : this.configurationName = '用户协议'
      this.$axios.get(`proconfigrich/getByName?name=${this.configurationName}`).then(res => {
        if(res.data.code != 200) return this.$notify({
          title: '提示',
          message: res.data.msg
        });
        console.log('/////////',res.data)
        this.agreementInfo = res.data.data
      })
    },
    toAgreement(){
      this.$router.push('/agreement')
    }
  },
 
};
</script>
<style lang="scss" scoped>
.body {
  background: #F2F2F2;
  width: 100%;
}
.agreement-warp{
  background: #FFF;
  width: 100%;
  height: 100%;
  text-align: center;
  h2{
    line-height:80px;
  }
  .content{
    width: 50%;
  }
  
}


</style>